using System;
using System.Web.Mvc;

namespace TheBoard.Models
{
    public class ActionExecutingFilterAttribute: ActionFilterAttribute
    {
        public Action<ActionExecutingContext> Filter { get; set; }
        public override void OnActionExecuting(ActionExecutingContext filterContext)
        {
            base.OnActionExecuting(filterContext);
            Filter(filterContext);
        }
    }
}